<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<%
	String path =request.getContextPath();
%>
<head>
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script language="javascript" type="text/javascript" src="<%=path%>/js/validatorTool.js"></script>
	<script language="javascript" type="text/javascript">
		
		function qryData(){
			form1.action="<%=path%>/other/qryArrGoodsList";
			form1.submit();
		}
		function exportData(){
			form1.action="<%=path%>/other/exportArrGoods?isList=y";
			form1.submit();
		}
		
	</script>
</head>
<body class="fullbody">
            <div class="context">
                <div class="position">
                    <div class="tposi">当前位置：
                        <a href="javascript:changeMenu(1,'<%=path%>/infopub/pubmain?menuid=1');"class="linkstyle">首页</a>&nbsp;&gt;&gt;&nbsp;
                   		<a href="javascript:changeMenu(5,'');" class="linkstyle">业务查询</a>&nbsp;&gt;&gt;&nbsp;
                        <span class="curposition">到货查询</span>
                    </div>
                    <div class="help">
						<a href="javascript:void(null);" onclick="doHelp('<%=request.getContextPath()%>/help/html/DHCX.html');" class="linkstyle">帮助</a>
					</div>
                </div>
                <div class="margin8"></div>
                <div class="subpage_title">
                    <div class="title_index">
                        <img src="<%=path%>/images/common/dot03.gif" alt="" border="0" />&nbsp;到货查询</div>
                </div>
                <div class="margin20"></div>
                <div class="subpage_bidlist">
                    <div class="subpage_search" >
                    	<form name="form1" action="<%=path%>/other/qryArrGoodsList" method="post">
	                        <table border="0" cellpadding="0" cellspacing="0" class="searchtable">
	                            <tr>
	                                <td valign="middle" class="w_1">到货单号：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryArrGoodNo" name="qryArrGoodNo" type="text" value="${qryArrGoodNo}" class="searchtext" />
	                                </td>
	                                <td valign="middle" class="w_1">订单号：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryOrderNo" name="qryOrderNo" type="text" value="${qryOrderNo}" class="searchtext" />
	                                </td>
	                            </tr>
	                            <tr>
	                            	<td valign="middle" class="w_1">采购公司：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryPurCorp" name="qryPurCorp" type="text" value="${qryPurCorp}" class="searchtext" />
	                                </td>
	                                <td valign="middle" class="w_1">产品名称：</td>
	                                <td valign="middle" class="w_2">
	                                   <input id="qryProdName" name="qryProdName" type="text" value="${qryProdName}" class="searchtext" />
	                                </td>
	                            </tr>
	                            <tr>
	                                <td valign="middle" class="w_1">到货日期：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryArrBeginDate" name="qryArrBeginDate" type="text" 
	                                    	onclick="return showCalendar('qryArrBeginDate', 'y-mm-dd');" 
		                                    readonly="readonly"	value="${qryArrBeginDate}" class="searchdate" />&nbsp;至&nbsp;
	                                    <input id="qryArrEndDate" name="qryArrEndDate" type="text" 
											onclick="return showCalendar('qryArrEndDate', 'y-mm-dd');"  
	                                    	readonly="readonly" value="${qryArrEndDate}" class="searchdate" />
	                                </td>
	                               <td colspan=""2>&nbsp;</td>
	                            </tr>
	                            <tr><td colspan="4">&nbsp;</td></tr>
	                            <tr>
	                                <td valign="middle" colspan="4" align="center">
	                                    <input type="button" class="btnscs" value="查询"  onclick="qryData()"/>&nbsp;&nbsp;
	                                    <input type="button" class="btnscs" value="取消" onclick="resetData()"/>&nbsp;&nbsp;
	                                    <input type="button" class="btnscs" value="导出" onclick="exportData()" <c:if test="${arrGoodsForms11==null}">disabled</c:if>/>
	                                </td>
	                            </tr>
	                        </table>
                        </form>
                    </div>
                    <div class="margin20">
                    </div>
                    <div>
                         <table class="tableCss" cellpadding="0" cellspacing="0" >
							<tr  class="titleTr" >
                                <th width="150">到货单号</th>
                                <th width="100">到货日期</th>
                                <th width="250">采购公司 </th>
                                <th width="250">采购部门</th>
                                <th width="50" class="th1">退货</th>
                            </tr>
                            <c:if test="${arrGoodsForms11!=null}">
								<c:forEach items="${arrGoodsForms11}" var="arrGoodsForm" varStatus="index">
									<c:if test="${arrGoodsForm.index%2==1}">
										<tr align="left" class="contTr-old"  >
									</c:if>
									<c:if test="${arrGoodsForm.index%2==0}">
										<tr align="left" class="contTr-even">
									</c:if>
										<td class="td1"><a href="<%=path%>/other/arrGoodsDetail?arrGoodsPk=${arrGoodsForm.pkArrGoods}" >${arrGoodsForm.billNo}</a></td>
										<td class="td1"><font class="words-blue">${arrGoodsForm.arriveDate}</font></td>
										<td class="td1">${arrGoodsForm.purCorpName}</td>
										<td class="td1">${arrGoodsForm.purDeptName}</td>
										<td class="td1">
											<c:if test="${'Y'==arrGoodsForm.isBackGoods}">是</c:if>
											<c:if test="${'N'==arrGoodsForm.isBackGoods}">否</c:if>
										</td>
									</tr>
								</c:forEach>
							</c:if>
                        </table>
                    </div>
                </div>
            </div>
        <div class="margin20"></div>
        <div class="margin8">
        	<table align="left">
				<tr class="title">
					<td>
						<div id="message" class="msgcolor">${system_err_msg}</div>
					</td>
				</tr>
			</table>
		</div> 
</body>
</html>
